-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add IAM conditions support for project IAM #2575
add IAM conditions support for project IAM #2575
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesWARNING: The following files changed in commit a7beb3f may need corresponding changes in third_party/validator:
No diff detected in terraform-google-conversion. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
I'll do validator changes separately. |
Ping @slevenick |
@@ -61,6 +86,25 @@ resource "google_project_iam_binding" "project" { | |||
} | |||
``` | |||
|
|||
With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to note that this is not public beta yet, and that they will need to be whitelisted to be able to use this?
@@ -71,6 +115,22 @@ resource "google_project_iam_member" "project" { | |||
} | |||
``` | |||
|
|||
With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -118,6 +178,9 @@ will not be inferred from the provider. | |||
|
|||
* `audit_log_config` - (Required only by google\_project\_iam\_audit\_config) The configuration for logging of each type of permission. This can be specified multiple times. Structure is documented below. | |||
|
|||
* `condition` - (Optional, [Beta](https://terraform.io/docs/providers/google/provider_versions.html)) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe even another note here about this not being public beta. I can imagine lots of issues coming up where people are not whitelisted
4e84822
to
3e5cd61
Compare
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
Added whitelist-only notes to all places in the docs conditions are mentioned (including the service account iam docs) |
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
Part of hashicorp/terraform-provider-google#2909.
Tests don't work right now because even though the CI project is whitelisted, the tests make new projects that aren't whitelisted. I built the provider locally and checked that it worked (at least for binding and member, I didn't do it for project since it can be destructive)
Release Note Template for Downstream PRs (will be copied)